package edu.neusoft.yuejian_09.service;

import java.util.List;

import edu.neusoft.yuejian_09.bean.Contest;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by 爽 on 2017/10/9.
 */

public interface ContestService {
    //获取比赛列表
    @GET("Contests/getContests")
    Call<List<Contest>> getAllContests();

    //获取比赛详情
    @GET("Contests/getContestInfo")
    Call<Contest> getContestById(
            @Query("contest_id") int contest_id
    );

    //搜索比赛
    @GET("Contests/searchContest")
    Call<List<Contest>> getContestBySearch(
            @Query("search") String search
    );
}
